]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
app-usage: Remove unused open-window-count attribute
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 9 Apr 2012 07:08:07 +0000 (04:08 -0300)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 17 Nov 2018 12:08:33 +0000 (12:08 +0000)
Since this has already been unused and was inaccessible, this shouldn't
matter too much.

https://bugzilla.gnome.org/show_bug.cgi?id=673767

src/shell-app-usage.c

index 88895aa1e97b66991ec4d3b61e99197e4d6ccbcc..3393a6746406284e8d06f9113919a551222ac1a3 100644 (file)
@@ -90,8 +90,6 @@ struct _ShellAppUsage
   gboolean currently_idle;
   gboolean enable_monitoring;
 
-  GSList *previously_running;
-
   long watch_start_time;
   ShellApp *watched_app;
 
@@ -588,8 +586,6 @@ idle_save_application_usage (gpointer data)
         goto out;
       if (!write_attribute_string (data_output, "id", id, &error))
         goto out;
-      if (!write_attribute_uint (data_output, "open-window-count", shell_app_get_n_windows (app), &error))
-        goto out;
       if (!write_attribute_double (data_output, "score", usage->score, &error))
         goto out;
       if (!write_attribute_uint (data_output, "last-seen", usage->last_seen, &error))
@@ -661,14 +657,7 @@ shell_app_usage_start_element_handler  (GMarkupParseContext *context,
 
       for (attribute = attribute_names, value = attribute_values; *attribute; attribute++, value++)
         {
-          if (strcmp (*attribute, "open-window-count") == 0)
-            {
-              guint count = strtoul (*value, NULL, 10);
-              if (count > 0)
-                 self->previously_running = g_slist_prepend (self->previously_running,
-                                                             g_strdup (appid));
-            }
-          else if (strcmp (*attribute, "score") == 0)
+          if (strcmp (*attribute, "score") == 0)
             {
               usage->score = g_ascii_strtod (*value, NULL);
             }